<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <link rel="stylesheet" href="admin/css/bootstrap.min.css" type="text/css"/>
    <script type="text/javascript" src="admin/js/jquery.min.js" ></script>
    <script type="text/javascript" src="admin/js/bootstrap.js" ></script>
    <title>主页</title>

    <style>
        body{
            margin-top: 65px;
        }
        .col-md-2{
            background-color: #ccc;
            /*?*/
            height: 600px;
        }
        #left-content{
            margin-top: 20px;
        }
        .list-group{
            padding-left: 0;
        }
        #panel-group{
            margin-top: 20px;
        }
        #onebtn{
            margin: 10px 0;
        }
        #btngroup button{
            width: 100%;
        }
        .progress{
            margin-top: 15px;
        }

    </style>

</head>

<body>


<nav class="navbar navbar-default navbar-fixed-top navbar-inverse" role="navigation">
    <!--container-fluid表示自适应大小，container表示居中-->
    <div class="container">
        <!--定义顶部导航栏-->
        <div class="navbar-header">
            <!--button是当屏幕小于多少时出现的可以打开导航列表的按钮-->
            <button type="button" class="navbar-toggle collapsed"
                    data-toggle="collapse" data-target="#demo-navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">疫情助手后台管理</a>
        </div>

        <!--collapse用于导航栏折叠之后数据在button按钮里点击显示-->
        <div class="collapse navbar-collapse" id="demo-navbar">
            <!--nav navbar-nav表示显示在导航栏里-->
            <ul class="nav navbar-nav">
                <li class="active"><a href="#">首页</a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">功能<span class="caret"></span></a>
                    <ul class="dropdown-menu" role="menu">
                        <!--通过dropdown-header来标记一组动作-->
                        <li><a href="http://127.0.0.1:8080/YQZS/userinfo">查看用户</a></li>
                        <li role="presentation" class="divider"></li>
                        <li><a href="#">疫情数据</a></li>
                        <li role="presentation" class="divider"></li>
                        <li><a href="#">疫情分析</a></li>
                    </ul>
                </li>

                <li><a href="#" data-toggle="modal" data-target="#about">帮助</a></li>

            </ul>

            <ul class="nav navbar-nav navbar-right">
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown">
                       欢迎您,
                        <span id="usname"></span>
                        <b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="#updateinfo" data-toggle="modal">个人资料</a></li>
                        <li role="presentation" class="divider"></li>
                        <li><a href="#updatepwd" data-toggle="modal">修改密码</a></li>
                        <li role="presentation" class="divider"></li>
                        <li><a href="http://127.0.0.1:8080/YQZS/login">退出</a></li>
                    </ul>
                </li>
            </ul>

        </div>

    </div>
</nav>


<div class="container-fluid">
    <div class="row">
        <div class="col-md-2">
            <div class="text-center" id="left-content">
                <div class="list-group">
                    <a href="#" class="list-group-item active">首页</a>
                </div>
                <div class="list-group">
                    <a href="http://127.0.0.1:8080/YQZS/userinfo" class="list-group-item">查看用户</a>
                    <a href="#" class="list-group-item">疫情数据</a>
                    <a href="#" class="list-group-item">疫情分析</a>
                </div>
                <div class="list-group">
                    <a href="#" class="list-group-item">设置</a>
                    <a href="#" class="list-group-item">帮助</a>
                </div>
            </div>
        </div>

        <section class="content container-fluid">
            <div style="padding-top: 20%;text-align: center;font-size: 28px;">
                <h1>欢迎使用！</h1>

            </div>
        </section>

    </div>

</div>


<script type="text/javascript">
    var userdt = JSON.parse(sessionStorage.getItem("user"));
    $("#usname").text(userdt.result.userLoginName);
</script>

</body>
</html>
